package com.pobos.model

import com.google.appengine.api.datastore.Entity

class Concello extends Model {
	
	Entity entity
	
	public Concello(Map params){
		super(params)
	}
	
	public Concello(Entity e){
		this.@entity = entity
	}
	
	def addItem(item){
		/*if(this.@entity.items){
			this.@entity.items << item.id
		}else{
			this.@entity.items = [item.id]
		}*/
		return this.@entity
	}
	
	/*def getItems(){
		return this.@entity.items.collect {
			new Item( this.getEntity(Concello.class.simpleName, it) )
		}
	}*/
}